package org.jeecg.modules.monitoring.j_monitoring.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 机房
 * @Author: xiaoyq
 * @Date:   2023-02-22
 * @Version: V1.0
 */
@Data
@TableName("m_machine_room")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="机房", description="机房")
public class MMachineRoom implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键id")
    private java.lang.String id;
	/**机房名称*/
	@Excel(name = "机房名称", width = 15)
    @ApiModelProperty(value = "机房名称")
    private java.lang.String name;
	/**面积(平米)*/
	@Excel(name = "面积(平米)", width = 15)
    @ApiModelProperty(value = "面积(平米)")
    private java.math.BigDecimal area;
	/**机房位置*/
	@Excel(name = "机房位置", width = 15)
    @ApiModelProperty(value = "机房位置")
    private java.lang.String position;

    //@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    //@Excel(name = "责任人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
	/**责任人*/
	@Excel(name = "责任人", width = 15)
    @ApiModelProperty(value = "责任人")
    private java.lang.String personLiable;

    @ApiModelProperty(value = "责任人id")
    private java.lang.String personLiableId;

    /**创建时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;

    /**更新时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    private java.util.Date updateTime;

    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;

    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;

    @TableField(exist = false)
    private Boolean broken = false;
}
